<html>
<head><meta charset="utf-8"><title>xargo libstd build · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/xargo.20libstd.20build.html">xargo libstd build</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="151626169"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/xargo%20libstd%20build/near/151626169" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/xargo.20libstd.20build.html#151626169">(Dec 13 2018 at 17:56)</a>:</h4>
<p><span class="user-mention" data-user-id="116015">@Alex Crichton</span> as expected, the <a href="http://std-can-depend-on-crates.io" target="_blank" title="http://std-can-depend-on-crates.io">std-can-depend-on-crates.io</a> thing broke xargo building libstd. namely, I get</p>
<div class="codehilite"><pre><span></span>error[E0463]: can&#39;t find crate for `std`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0463`.
error: Could not compile `rustc-std-workspace-core`.
warning: build failed, waiting for other jobs to finish...
error: build failed
error: `&quot;cargo&quot; &quot;build&quot; &quot;--release&quot; &quot;--manifest-path&quot; &quot;/tmp/xargo.drywiPoxElbZ/Cargo.toml&quot; &quot;--target&quot; &quot;x86_64-unknown-linux-gnu&quot; &quot;-p&quot; &quot;std&quot;` failed with exit code: Some(101)
</pre></div>


<p>any idea why something would look for <code>std</code> when building <code>rustc-std-workspace-core</code>?</p>



<a name="151626192"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/xargo%20libstd%20build/near/151626192" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/xargo.20libstd.20build.html#151626192">(Dec 13 2018 at 17:57)</a>:</h4>
<p>(Cc <span class="user-mention" data-user-id="124288">@Oli</span> it might be a while until miri works again... also because I don't have much time to look after this, I <em>really</em> should be writing my master thesis^^)</p>



<a name="151626272"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/xargo%20libstd%20build/near/151626272" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/xargo.20libstd.20build.html#151626272">(Dec 13 2018 at 17:58)</a>:</h4>
<p>wait wat? I thought you were doing a PhD?</p>



<a name="151626304"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/xargo%20libstd%20build/near/151626304" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/xargo.20libstd.20build.html#151626304">(Dec 13 2018 at 17:59)</a>:</h4>
<p>on-topic: I'll try to figure something out. Maybe I'll just give <code>always-encode-mir</code> another try by looking how large the impact of it is</p>



<a name="151626325"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/xargo%20libstd%20build/near/151626325" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/xargo.20libstd.20build.html#151626325">(Dec 13 2018 at 17:59)</a>:</h4>
<p>yeah but I skipped the master and now I want to get it because reasons^^</p>



<a name="151626349"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/xargo%20libstd%20build/near/151626349" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/xargo.20libstd.20build.html#151626349">(Dec 13 2018 at 17:59)</a>:</h4>
<p>hm it actually seems like it builds <code>rustc-std-workspace-core</code> before it is even done building core...</p>



<a name="151626410"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/xargo%20libstd%20build/near/151626410" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/xargo.20libstd.20build.html#151626410">(Dec 13 2018 at 18:00)</a>:</h4>
<p>that can't be though, there is an explicit dependency</p>



<a name="151626567"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/xargo%20libstd%20build/near/151626567" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/xargo.20libstd.20build.html#151626567">(Dec 13 2018 at 18:02)</a>:</h4>
<p>but the build log is pretty clear...</p>
<div class="codehilite"><pre><span></span>     Running `rustc --crate-name rustc_std_workspace_core /home/r/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-std-workspace-core-1.0.0/src/lib.rs --color always --crate-type lib --emit=dep-info,link -C opt-level=3 -C metadata=bf253d2d0bd6a6fb -C extra-filename=-bf253d2d0bd6a6fb --out-dir /tmp/xargo.7d0OnZnXb4ER/target/x86_64-unknown-linux-gnu/release/deps --target x86_64-unknown-linux-gnu -L dependency=/tmp/xargo.7d0OnZnXb4ER/target/x86_64-unknown-linux-gnu/release/deps -L dependency=/tmp/xargo.7d0OnZnXb4ER/target/release/deps --cap-lints allow --sysroot /home/r/.xargo/HOST -Z force-unstable-if-unmarked`
     Running `rustc --crate-name build_helper /home/r/.rustup/toolchains/7489ee9c6f92050a12a3a3097df0a7d3737d82ec/lib/rustlib/src/rust/src/build_helper/lib.rs --color always --crate-type lib --emit=dep-info,link -C opt-level=3 -C metadata=63a15ced80c8c105 -C extra-filename=-63a15ced80c8c105 --out-dir /tmp/xargo.7d0OnZnXb4ER/target/release/deps -L dependency=/tmp/xargo.7d0OnZnXb4ER/target/release/deps`
     Running `rustc --crate-name core /home/r/.rustup/toolchains/7489ee9c6f92050a12a3a3097df0a7d3737d82ec/lib/rustlib/src/rust/src/libcore/lib.rs --color always --crate-type lib --emit=dep-info,link -C opt-level=3 -C metadata=528d977cf525b6bd -C extra-filename=-528d977cf525b6bd --out-dir /tmp/xargo.7d0OnZnXb4ER/target/x86_64-unknown-linux-gnu/release/deps --target x86_64-unknown-linux-gnu -L dependency=/tmp/xargo.7d0OnZnXb4ER/target/x86_64-unknown-linux-gnu/release/deps -L dependency=/tmp/xargo.7d0OnZnXb4ER/target/release/deps --sysroot /home/r/.xargo/HOST -Z force-unstable-if-unmarked`
</pre></div>



<a name="151626582"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/xargo%20libstd%20build/near/151626582" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/xargo.20libstd.20build.html#151626582">(Dec 13 2018 at 18:02)</a>:</h4>
<p>oh wait it actually uses the <code>rustc_std_workspace_core</code> from GH, not the one it should be using</p>



<a name="151626592"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/xargo%20libstd%20build/near/151626592" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Alex Crichton <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/xargo.20libstd.20build.html#151626592">(Dec 13 2018 at 18:02)</a>:</h4>
<p><span class="user-mention" data-user-id="120791">@RalfJ</span> if xargo creates a fresh <code>Cargo.toml</code> (which it looks like it does?) then it'll need a <code>[patch]</code> to point to <code>rustc-std-workspace-core</code></p>



<a name="151626594"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/xargo%20libstd%20build/near/151626594" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Alex Crichton <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/xargo.20libstd.20build.html#151626594">(Dec 13 2018 at 18:02)</a>:</h4>
<p>the bug there is, yeah, using the <a href="http://crates.io" target="_blank" title="http://crates.io">crates.io</a> version instead of the local version</p>



<a name="151626600"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/xargo%20libstd%20build/near/151626600" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/xargo.20libstd.20build.html#151626600">(Dec 13 2018 at 18:03)</a>:</h4>
<p>yeah that's probably the problem</p>



<a name="151626604"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/xargo%20libstd%20build/near/151626604" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Alex Crichton <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/xargo.20libstd.20build.html#151626604">(Dec 13 2018 at 18:03)</a>:</h4>
<p>which is required to do so via <code>[patch]</code></p>



<a name="151626613"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/xargo%20libstd%20build/near/151626613" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Alex Crichton <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/xargo.20libstd.20build.html#151626613">(Dec 13 2018 at 18:03)</a>:</h4>
<p>I didn't know that xargo copied the manifest :(</p>



<a name="151626622"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/xargo%20libstd%20build/near/151626622" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Alex Crichton <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/xargo.20libstd.20build.html#151626622">(Dec 13 2018 at 18:03)</a>:</h4>
<p>makes sense in retrospect...</p>



<a name="151626624"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/xargo%20libstd%20build/near/151626624" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/xargo.20libstd.20build.html#151626624">(Dec 13 2018 at 18:03)</a>:</h4>
<p><span class="user-mention" data-user-id="116015">@Alex Crichton</span> got the patch line somewhere to copy-paste?</p>



<a name="151626635"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/xargo%20libstd%20build/near/151626635" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/xargo.20libstd.20build.html#151626635">(Dec 13 2018 at 18:03)</a>:</h4>
<p>(pointer to some rust src file or so)</p>



<a name="151626751"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/xargo%20libstd%20build/near/151626751" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/xargo.20libstd.20build.html#151626751">(Dec 13 2018 at 18:04)</a>:</h4>
<p>(I figured rustc needs to also do this somewhere)</p>



<a name="151626813"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/xargo%20libstd%20build/near/151626813" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Alex Crichton <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/xargo.20libstd.20build.html#151626813">(Dec 13 2018 at 18:05)</a>:</h4>
<p><a href="https://github.com/rust-lang/rust/blob/7489ee9c6f92050a12a3a3097df0a7d3737d82ec/Cargo.toml#L58-L70" target="_blank" title="https://github.com/rust-lang/rust/blob/7489ee9c6f92050a12a3a3097df0a7d3737d82ec/Cargo.toml#L58-L70">https://github.com/rust-lang/rust/blob/7489ee9c6f92050a12a3a3097df0a7d3737d82ec/Cargo.toml#L58-L70</a></p>



<a name="151626820"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/xargo%20libstd%20build/near/151626820" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Alex Crichton <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/xargo.20libstd.20build.html#151626820">(Dec 13 2018 at 18:05)</a>:</h4>
<p>only the last one is needed there (but <code>[patch.crates-io]</code> is needed)</p>



<a name="151725353"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/xargo%20libstd%20build/near/151725353" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/xargo.20libstd.20build.html#151725353">(Dec 13 2018 at 19:19)</a>:</h4>
<p><span class="user-mention" data-user-id="116015">@Alex Crichton</span> <span class="user-mention" data-user-id="124288">@Oli</span>  turns out that's enough :) <a href="https://github.com/japaric/xargo/pull/228" target="_blank" title="https://github.com/japaric/xargo/pull/228">https://github.com/japaric/xargo/pull/228</a></p>



<a name="151770084"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/xargo%20libstd%20build/near/151770084" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jethro <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/xargo.20libstd.20build.html#151770084">(Dec 14 2018 at 11:34)</a>:</h4>
<p>Not quite unfortunately :(</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>